home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 41 / CD Expert nº 41.iso / DReign2 / DR2Demo.exe / data1.cab / Files / missions / demo / Demo Mission 1.zwp / objectives_player.cfg < prev    next >
Encoding:
Text File  |  2000-09-01  |  13.0 KB  |  736 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 1997-99 Pandemic Studios
  4. //
  5. // Dark Reign II
  6. //
  7.  
  8.  
  9. ///Player kill rioters
  10. CreateObjectType("objective_kill_mob", "Objective")
  11. {
  12.   GameObj();
  13.   ObjectiveObj()
  14.   {
  15.     Condition("HaveTag")
  16.     {
  17.       Tag("rioters")
  18.       {
  19.         Operator("<");
  20.         Amount(1);
  21.       }
  22.       Relation("Enemy");
  23.     }
  24.     Action()
  25.     {
  26.       DisplayObjective("Remove", "objective_kill_mob");
  27.       NewObjective("cineractive_mob");
  28.       NewObjective("objective_stand");
  29.       NewObjective("objective_2towers");
  30.     }
  31.   }
  32. }
  33.  
  34.  
  35. CreateObjectType("objective_msg_base_loc", "Objective")
  36. {
  37.   GameObj();
  38.   ObjectiveObj()
  39.   {
  40.     Condition("Timer")
  41.     {
  42.       Time(5);
  43.     }
  44.     Action()
  45.     {
  46.       RegionMessage()
  47.       {
  48.         Region("jda_base");
  49.         Message("msg_base_loc");
  50.       }
  51.       NewObjective("objective_msg_base_loc");
  52.     }
  53.   }
  54. }
  55.  
  56.  
  57. ///player reaches base
  58. CreateObjectType("objective_stand", "Objective")
  59. {
  60.   GameObj();
  61.   ObjectiveObj()
  62.   {
  63.     Condition("InRegion")
  64.     {
  65.       Region("complex");
  66.       Type("*")
  67.       {
  68.         Amount(0);
  69.         Operator(">");
  70.       }
  71.       Team("jda");
  72.     }
  73.     Action()
  74.     {
  75.       ObjectiveAbandoned("objective_msg_base_loc");
  76.       GameMessage()
  77.       {
  78.         Message("j01_cig_obj-2");
  79.       }
  80.       DisplayObjective("Remove", "objective_stand");
  81.       DisplayObjective("Add", "cineractive_quake")
  82.       {
  83.         Text("#missions.jda.j01.obj_stand");
  84.       }
  85.       ExecuteScript("attackers_2", "squad.move.tagtoregion")
  86.       {
  87.         Op("%.tag", "=", "attackers_2");
  88.         Op("%.region", "=", "complex");
  89.       }
  90.       Cmd("team.setrelation jda_ally jda ally");
  91.       Cmd("team.setrelation jda jda_ally ally");
  92.       NewObjective("objective_earthquake");
  93.     }
  94.   }
  95. }
  96.  
  97.  
  98. ///quake
  99. CreateObjectType("objective_earthquake", "Objective")
  100. {
  101.   GameObj();
  102.   ObjectiveObj()
  103.   {
  104.     Condition("Timer")
  105.     {
  106.       Time(20, 25);
  107.     }
  108.     Action()
  109.     {
  110.       NewObjective("cineractive_quake");
  111.       NewObjective("objective_orders");
  112.     }
  113.   }
  114. }
  115.  
  116. ///ordered to rebuild base
  117. CreateObjectType("objective_orders", "Objective")
  118. {
  119.   GameObj();
  120.   ObjectiveObj()
  121.   {
  122.     Condition("Timer")
  123.     {
  124.       Time(24);
  125.     }
  126.     Action()
  127.     {
  128.       HighlightConstruction("jda.building.hq1");
  129.       DisplayObjective("Add", "objective_rebuild_hq")
  130.       {
  131.         Text("#missions.jda.j01.obj_orders");
  132.       }
  133.       RegionMessage()
  134.       {
  135.         Region("jda_base");
  136.         Message("j01_comb_obj-3");
  137.       }
  138.       NewObjective("objective_rebuild_hq");
  139.       NewObjective("objective_hq_building");
  140.       NewObjective("objective_rig_lost");
  141.     }
  142.   }
  143. }
  144.  
  145. //begins building hq1
  146. CreateObjectType("objective_hq_building", "Objective")
  147. {
  148.   GameObj();
  149.   ObjectiveObj()
  150.   {
  151.     Condition("ConstructingType")
  152.     {
  153.       Type("jda.building.hq1");
  154.     }
  155.     Action()
  156.     {
  157.       UnHighlightConstruction();
  158.       ObjectiveAbandoned("objective_patrol_killed");
  159.       ObjectiveAbandoned("objective_rig_lost");
  160.       HighlightConstruction("jda.building.solarpower");
  161.       GameMessage()
  162.       {
  163.         Message("j01_sid_hlp-2");
  164.       }
  165.       DisplayObjective("Add", "objective_build_power")
  166.       {
  167.         Text("#missions.jda.j01.obj_hq_building");
  168.       }
  169.       NewObjective("objective_build_power");
  170.     }
  171.   }
  172. }
  173.  
  174.  
  175. CreateObjectType("objective_build_power", "Objective")
  176. {
  177.   GameObj();
  178.   ObjectiveObj()
  179.   {
  180.     Condition("HaveType")
  181.     {
  182.       Type("jda.building.solarpower")
  183.       {
  184.         Operator(">");
  185.         Amount(0);
  186.       }
  187.     }
  188.     Action()
  189.     {
  190.       UnHighlightConstruction();
  191.       HighlightConstruction("jda.building.precinct1");
  192.       DisplayObjective("Remove", "objective_build_power");
  193.       GameMessage()
  194.       {
  195.         Message("j01_sid_hlp-4");
  196.       }
  197.       NewObjective("objective_build_precinct");
  198.       DisplayObjective("Add", "objective_build_precinct")
  199.       {
  200.         Text("#missions.jda.j01.obj_build_precinct");
  201.       }
  202.     }
  203.   }
  204. }
  205.  
  206.  
  207. ///begins building precinct
  208. CreateObjectType("objective_build_precinct", "Objective")
  209. {
  210.   GameObj();
  211.   ObjectiveObj()
  212.   {
  213.     Condition("ConstructingType")
  214.     {
  215.       Type("jda.building.precinct1");
  216.     }
  217.     Action()
  218.     {
  219.       UnHighlightConstruction();
  220.       DisplayObjective("Remove", "objective_build_precinct");
  221.       GameMessage()
  222.       {
  223.         Message("j01_sid_hlp-3");
  224.       }
  225.       NewObjective("objective_test_rig");
  226.       HighlightConstruction("jda.unit.rig");
  227.       DisplayObjective("Add", "objective_build_rig")
  228.       {
  229.         Text("#missions.jda.j01.obj_build_rig");
  230.       }
  231.     }
  232.   }
  233. }
  234.  
  235.  
  236. CreateObjectType("objective_test_rig", "Objective")
  237. {
  238.   GameObj();
  239.   ObjectiveObj()
  240.   {
  241.     Condition("AND")
  242.     {
  243.       Condition("HaveType")
  244.       {
  245.         Type("jda.building.precinct1")
  246.         {
  247.           Amount(0);
  248.           Operator(">");
  249.         }
  250.       }
  251.       Condition("HaveType")
  252.       {
  253.         Type("jda.unit.rig")
  254.         {
  255.           Amount(0);
  256.           Operator(">");
  257.         }
  258.       }
  259.     }
  260.     Action()
  261.     {
  262.       UnHighlightConstruction();
  263.       DisplayObjective("Remove", "objective_build_rig");
  264.       GameMessage()
  265.       {
  266.         Message("j01_sid_hlp-5");
  267.       }
  268.       HighlightConstruction("jda.building.motorpool1");
  269.       DisplayObjective("Add", "objective_base")
  270.       {
  271.         Text("#missions.jda.j01.obj_build_motorpool");
  272.       }
  273.       NewObjective("objective_motorpool");
  274.     }
  275.   }
  276. }
  277.  
  278.  
  279. CreateObjectType("objective_motorpool", "Objective")
  280. {
  281.   GameObj();
  282.   ObjectiveObj()
  283.   {
  284.     Condition("ConstructingType")
  285.     {
  286.       Type("jda.building.motorpool1");
  287.     }
  288.     Action()
  289.     {
  290.       UnHighlightConstruction();
  291.       NewObjective("objective_restore_refinery");
  292.       NewObjective("objective_motorpool_complete");
  293.     }
  294.   }
  295. }
  296.  
  297.  
  298. CreateObjectType("objective_motorpool_complete", "Objective")
  299. {
  300.   GameObj();
  301.   ObjectiveObj()
  302.   {
  303.     Condition("HaveType")
  304.     {
  305.       Type("jda.building.motorpool1")
  306.       {
  307.         Amount(0);
  308.         Operator(">");
  309.       }
  310.     }
  311.     Action()
  312.     {
  313.       DisplayObjective("Remove", "objective_base");
  314.     }
  315.   }
  316. }
  317.  
  318.  
  319.  
  320. ///Player constructs HQ
  321. CreateObjectType("objective_rebuild_hq", "Objective")
  322. {
  323.   GameObj();
  324.   ObjectiveObj()
  325.   {
  326.     Condition("HaveType")
  327.     {
  328.       Type("jda.building.hq1")
  329.       {
  330.         Operator("==");
  331.         Amount(1);
  332.       }
  333.     }
  334.     Action()
  335.     {
  336.       DisplayObjective("Remove", "objective_rebuild_hq");
  337.     }
  338.   }
  339. }
  340.  
  341.  
  342. CreateObjectType("collector_loc", "Objective")
  343. {
  344.   GameObj();
  345.   ObjectiveObj()
  346.   {
  347.     Condition("Timer")
  348.     {
  349.       Time(6);
  350.     }
  351.     Action()
  352.     {
  353.       RegionMessage()
  354.       {
  355.         Region("collector_loc");
  356.         Message("msg_collector_loc");
  357.       }
  358.     }
  359.   }
  360. }
  361.  
  362. CreateObjectType("objective_restore_refinery", "Objective")
  363. {
  364.   GameObj();
  365.   ObjectiveObj()
  366.   {
  367.     Condition("Timer")
  368.     {
  369.       Time(4);
  370.     }
  371.     Action()
  372.     {
  373.       NewObjective("cineractive_refinery");
  374.       SetTeam()
  375.       {
  376.         Tag("refinery");
  377.         Team("JDA");
  378.       }
  379.       SetTeam()
  380.       {
  381.         Tag("collector");
  382.         Team("JDA");
  383.       }
  384.       NewObjective("objective_base_built");
  385.     }
  386.   }
  387. }
  388.  
  389.  
  390. CreateObjectType("objective_base_built", "Objective")
  391. {
  392.   GameObj();
  393.   ObjectiveObj()
  394.   {
  395.     Condition("InRegion")
  396.     {
  397.       Region("resource");
  398.       Type("jda.unit.collector")
  399.       {
  400.         Amount(1);
  401.         Operator("==");
  402.       }
  403.     }
  404.     Action()
  405.     {
  406.       GameMessage()
  407.       {
  408.         Message("j01_comb_obj-4");
  409.       }
  410.       DisplayObjective("Remove", "objective_base_built");
  411.       ObjectiveAbandoned("objective_fuckup");
  412.       DisplayObjective("Add", "objective_3towers")
  413.       {
  414.         Text("#missions.jda.j01.obj_3towers");
  415.       }
  416.       NewObjective("tower_locs");
  417.       NewObjective("cineractive_tower");
  418.       NewObjective("objective_defeat");
  419.     }
  420.   }
  421. }
  422.  
  423.  
  424. //player loses all
  425. CreateObjectType("objective_defeat", "Objective")
  426. {
  427.   GameObj();
  428.   ObjectiveObj()
  429.   {
  430.     Condition("HaveMember")
  431.     {
  432.       Amount(0);
  433.       Operator("==");
  434.       Team("jda");
  435.     }
  436.     Action()
  437.     {
  438.       NewObjective("cineractive_defeat");
  439.     }
  440.   }
  441. }
  442.  
  443.  
  444.  
  445. ///Player destroys 1 enemy aa tower
  446.  
  447. CreateObjectType("objective_2towers", "Objective")
  448. {
  449.   GameObj();
  450.   ObjectiveObj()
  451.   {
  452.     Condition("HaveType")
  453.     {
  454.       Relation("Enemy");
  455.       Type("sprawler.building.aatower")
  456.       {
  457.         Operator("==");
  458.         Amount(2);
  459.       }
  460.     }
  461.     Action()
  462.     {
  463.       GameMessage()
  464.       {
  465.         Message("j01_sid_hlp-6");
  466.       }
  467.       NewObjective("objective_1tower");
  468.     }
  469.   }
  470. }
  471.  
  472.  
  473. ///Player destroys 2 enemy aa towers
  474.  
  475. CreateObjectType("objective_1tower", "Objective")
  476. {
  477.   GameObj();
  478.   ObjectiveObj()
  479.   {
  480.     Condition("HaveType")
  481.     {
  482.       Relation("Enemy");
  483.       Type("sprawler.building.aatower")
  484.       {
  485.         Operator("==");
  486.         Amount(1);
  487.       }
  488.     }
  489.     Action()
  490.     {
  491.       GameMessage()
  492.       {
  493.         Message("j01_sid_hlp-7");
  494.       }
  495.       NewObjective("objective_0towers");
  496.     }
  497.   }
  498. }
  499.  
  500.  
  501. ///Player destroys all enemy aa towers
  502.  
  503. CreateObjectType("objective_0towers", "Objective")
  504. {
  505.   GameObj();
  506.   ObjectiveObj()
  507.   {
  508.     Condition("HaveType")
  509.     {
  510.       Relation("Enemy");
  511.       Type("sprawler.building.aatower")
  512.       {
  513.         Operator("<");
  514.         Amount(1);
  515.       }
  516.     }
  517.     Action()
  518.     {
  519.       DisplayObjective("Complete", "objective_3towers");
  520.       NewObjective("cineractive_outro");
  521.     }
  522.   }
  523. }
  524.  
  525. ///////tower location messages
  526.  
  527.  
  528. CreateObjectType("tower_locs", "Objective")
  529. {
  530.   GameObj();
  531.   ObjectiveObj()
  532.   {
  533.     Condition("Timer")
  534.     {
  535.       Time(5);
  536.     }
  537.     Action()
  538.     {
  539.       ObjectiveAbandoned("tower_loc1");
  540.       ObjectiveAbandoned("tower_loc2");
  541.       ObjectiveAbandoned("tower_loc3");
  542.       NewObjective("tower_locs");
  543.       NewObjective("tower_loc1");
  544.       NewObjective("tower_loc2");
  545.       NewObjective("tower_loc3");
  546.     }
  547.   }
  548. }
  549.  
  550.  
  551. CreateObjectType("tower_loc1", "Objective")
  552. {
  553.   GameObj();
  554.   ObjectiveObj()
  555.   {
  556.     Condition("TagCount")
  557.     {
  558.       Tag("tower_1")
  559.       {
  560.         Amount(0);
  561.         Operator(">");
  562.       }
  563.     }
  564.     Action()
  565.     {
  566.       RegionMessage()
  567.       {
  568.         Message("msg_tower_loc");
  569.         Region("tower_1");
  570.       }
  571.     }
  572.   }
  573. }
  574.  
  575. CreateObjectType("tower_loc2", "Objective")
  576. {
  577.   GameObj();
  578.   ObjectiveObj()
  579.   {
  580.     Condition("TagCount")
  581.     {
  582.       Tag("tower_2")
  583.       {
  584.         Amount(0);
  585.         Operator(">");
  586.       }
  587.     }
  588.     Action()
  589.     {
  590.       RegionMessage()
  591.       {
  592.         Message("msg_tower_loc");
  593.         Region("tower_2");
  594.       }
  595.     }
  596.   }
  597. }
  598.  
  599. CreateObjectType("tower_loc3", "Objective")
  600. {
  601.   GameObj();
  602.   ObjectiveObj()
  603.   {
  604.     Condition("TagCount")
  605.     {
  606.       Tag("tower_3")
  607.       {
  608.         Amount(0);
  609.         Operator(">");
  610.       }
  611.     }
  612.     Action()
  613.     {
  614.       RegionMessage()
  615.       {
  616.         Message("msg_tower_loc");
  617.         Region("tower_3");
  618.       }
  619.     }
  620.   }
  621. }
  622.  
  623.  
  624.  
  625. //player loses hq and free rig
  626. CreateObjectType("objective_rig_lost", "Objective")
  627. {
  628.   GameObj();
  629.   ObjectiveObj()
  630.   {
  631.     Condition("AND")
  632.     {
  633.       Condition("HaveType")
  634.       {
  635.         Type("jda.unit.rig")
  636.         {
  637.           Amount(0);
  638.           Operator("==");
  639.         }
  640.       }
  641.       Condition("HaveType")
  642.       {
  643.         Type("jda.building.hq1")
  644.         {
  645.           Amount(0);
  646.           Operator("==");
  647.         }
  648.       }
  649.       Condition("Timer")
  650.       {
  651.         Time(300);
  652.       }
  653.     }
  654.     Action()
  655.     {
  656.       Cineractive("cineractive_defeat");
  657.     }
  658.   }
  659. }
  660.  
  661. ///player loses all starting units
  662. CreateObjectType("objective_reinforcements", "Objective")
  663. {
  664.   GameObj();
  665.   ObjectiveObj()
  666.   {
  667.     Condition("TagCount")
  668.     {
  669.       Tag("jda_patrol")
  670.       {
  671.         Operator("<");
  672.         Amount(1);
  673.       }
  674.     }
  675.     Action()
  676.     {
  677.       RegionMessage()
  678.       {
  679.         Message("msg_reinforcements");
  680.         Region("reinforcements");
  681.       }
  682.       SpawnObjects()
  683.       {
  684.         Formation("Box");
  685.         Direction(0);
  686.         Region("reinforcements");
  687.         Tag("jda_patrol");
  688.         Random(1);
  689.         AddType("jda.unit.guardian", 8);
  690.       }
  691.       NewObjective("objective_reinforcements");
  692.     }
  693.   }
  694. }
  695.  
  696.  
  697. ///player loses all units before building base
  698. CreateObjectType("objective_patrol_killed", "Objective")
  699. {
  700.   GameObj();
  701.   ObjectiveObj()
  702.   {
  703.     Condition("HaveTag")
  704.     {
  705.       Tag("jda_patrol")
  706.       {
  707.         Operator("<");
  708.         Amount(1);
  709.       }
  710.     }
  711.     Action()
  712.     {
  713.       NewObjective("cineractive_defeat");
  714.     }
  715.   }
  716. }
  717.  
  718.  
  719. CreateObjectType("strikes", "Objective")
  720. {
  721.   GameObj();
  722.   ObjectiveObj()
  723.   {
  724.     Condition("Timer")
  725.     {
  726.       Time(30, 60);
  727.     }
  728.     Action()
  729.     {
  730.       Cmd("rain.strike");
  731.       NewObjective("strikes");
  732.     }
  733.   }
  734. }
  735.  
  736.